package top.yokey.shopnc.model;

import top.yokey.shopnc.base.BaseConstant;
import top.yokey.base.base.BaseHttpClient;
import top.yokey.base.base.BaseHttpListener;

@SuppressWarnings("ALL")
public class MemberGoodsBrowseModel {

    private final String ACT = "member_goodsbrowse";
    private static volatile MemberGoodsBrowseModel instance;

    public static MemberGoodsBrowseModel get() {
        if (instance == null) {
            synchronized (MemberGoodsBrowseModel.class) {
                if (instance == null) {
                    instance = new MemberGoodsBrowseModel();
                }
            }
        }
        return instance;
    }

    public void browseClearAll(BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "browse_clearall")
                .get(baseHttpListener);

    }

    public void browseList(String page, BaseHttpListener baseHttpListener) {

        BaseHttpClient.get().ready(ACT, "browse_list")
                .add("page", BaseConstant.PAGE)
                .add("curpage", page)
                .get(baseHttpListener);

    }

}
